import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import register.User;


public class usertest {
    @Test
    public void test(){
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new
                ClassPathXmlApplicationContext("context.xml");

        User user = (User) classPathXmlApplicationContext.getBean("user");
        user.show();
    }
}
